/**
 * Copyright(c) 2013 Jade Techonologies Co., Ltd.
 *
 * History:
 *   13-4-14 下午6:03 Created by sky
 */
package com.jade.bss.base.customer.info;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.jade.bss.base.customer.CustomerInfo;

/**
 * 客户最近登录信息，包括登录IP，登录时间等等。
 *
 * @author sky
 * @version 1.0 13-4-14 下午6:03
 */
@Entity
@Table (name = "BSS_CUSINFO_LATEST_LOGIN")
public class LatestLoginInfo
        extends CustomerInfo
{
    /** 最后登录IP地址 */
    @Column (name = "latest_ip", length = 20)
    private String latestIp;

    /** 最后登录日期 */
    @Column (name = "latest_date")
    private Date latestDate;

    /** 最近访问方式 */
    @Column (name = "access_mode", length = 32)
    private String mode;

    /** 最近访问终端类型 */
    @Column (name = "user_agent", length = 128)
    private String userAgent;

    public String getLatestIp()
    {
        return latestIp;
    }

    public void setLatestIp(String latestIp)
    {
        this.latestIp = latestIp;
    }

    public Date getLatestDate()
    {
        return latestDate;
    }

    public void setLatestDate(Date latestDate)
    {
        this.latestDate = latestDate;
    }

    public String getMode()
    {
        return mode;
    }

    public void setMode(String mode)
    {
        this.mode = mode;
    }

    public String getUserAgent()
    {
        return userAgent;
    }

    public void setUserAgent(String userAgent)
    {
        this.userAgent = userAgent;
    }
}
